﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GNSCore.Model.Context;

namespace GNSCore.Model
{
    /// <summary>
    /// Partial for implementig interface
    /// </summary>
    public partial class GNSDBEntities : IGNSContext
    {
        #region IEShopContext Members
        
        public IQueryable<T> CreateQuery<T>()
        {
            string entitySetName = typeof(T).Name;
            IQueryable<T> query = this.CreateQuery<T>(String.Format("[{0}]", entitySetName));
            return query;
        }

        #endregion
    }
}